package User;

import User.factor.AdminUserFactory;
import User.factor.IUserFactory;
import User.factor.NormalUserFactory;

public class UserManagement {
    public static void main(String[] args){
        IUserFactory adminuserfactory=new AdminUserFactory();
        User adminuser= adminuserfactory.createUser("刘备",1);
        IUserFactory normaluserfactory=new NormalUserFactory();
        User normaluser= normaluserfactory.createUser("关羽",2);
        User normaluser1=normaluserfactory.createUser("张飞",3);
        ProxyUser proxyAdminUser=new ProxyUser(adminuser);
        ProxyUser proxyNomallUser1=new ProxyUser(normaluser);
        ProxyUser proxyNomallUser2=new ProxyUser(normaluser1);

    }
}
